﻿using Guest_room.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.UI.WebControls;

namespace GuestRoomMvc.Controllers
{
    public class NewPwdController : Controller
    {
        // GET: NewPwd
        public ActionResult Index()
        {
            return View();
        }
        [HttpPost]
        public ActionResult Result(string userid, string pwd,string newpwd,string againpwd)
        {
            GuestRoomService guestRoomService = new GuestRoomService();
            string message = guestRoomService.ChangeEmployeePassword(userid, pwd, newpwd, againpwd);
            ViewBag.Message = message;
            return View();
        }
    }
}